<template xmlns="http://www.w3.org/1999/html">
  <sea-data-table ref="tableObject" url="/kettle/item/log/page" :auto-load="false">
    <!--表头-->
    <sea-table-header slot="header" disabled-form>
      <!--标题栏-->
      <sea-table-title slot="title" title="日志细项" subtitle="Kettle每个步骤的执行情况"></sea-table-title>
    </sea-table-header>

    <!--表头-->
    <template slot="columns">
      <el-table-column property="channelId" label="通道ID" width="180"></el-table-column>
      <el-table-column property="logDate" label="日志时间" width="180"></el-table-column>
      <el-table-column property="transname" label="转换名称" width="180"></el-table-column>
      <el-table-column property="stepname" label="步骤名称" width="180"></el-table-column>
      <el-table-column property="errors" label="错误数量" width="180"></el-table-column>
      <el-table-column property="result" label="运行结果" width="180"></el-table-column>
      <el-table-column property="nrResultRows" label="影响行数" width="180"></el-table-column>
      <el-table-column property="nrResultFiles" label="影响文件" width="180"></el-table-column>
    </template>
  </sea-data-table>
</template>

<script>
export default {
    components: {}
    , name: 'EntryLogList'

    , props: {
        // 作业ID
        guid: {type: String, default: undefined},
    }
    , watch: {
        guid: {
            handler: function (val) {
                this.reload(val);
            }
        }
    }
    , methods: {
        /**
         * 重新加载数据
         *
         * @param id 查询参数
         */
        reload: function (id) {
            this.$refs.tableObject.reload({idBatch: id});
        }
    }
}
</script>
